package com.ssy.lingxi.feign;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.dto.request.AddSettlementApplyAmountVO;
import com.ssy.lingxi.dto.request.CallbackCommunicationPayVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;

/**
 * 结算服务会员结算Feign接口
 * @author 伍将
 * @date 2021/03/24
 * @version 2.0.0
 */
@FeignClient(name = "settle-accounts-service")
public interface MemberSettlementControllerFeign {

    /**
     * 新增请款单
     * @author 伍将
     * @date 2021/3/24
     **/
    @RequestMapping("/settle/accounts/member/feign/addApplyAmount")
    Wrapper<Void> addApplyAmount(@RequestBody @Valid AddSettlementApplyAmountVO addVO);

    /**
     * 应付账款-通联支付-回调地址
     * @param request 请求参数
     * @return 处理结果
     */
    @RequestMapping("/settle/accounts/member/feign/settlement/callback/communication/pay")
    Wrapper<Boolean> confirmCommunicationPay(@RequestBody @Valid CallbackCommunicationPayVO request);
}
